<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui">
      
    <h:head>
	<h:outputStylesheet library="css" name="estilo.css" />
        <title>Login Web</title>
    </h:head>
    <h:body>
    <img id="logo" src="../resources/img/logo.png" />
      <h:form id="formLogin">
      <p:panel menuTitle="Sige-Adv."
		header="Sige-Adv" id="bemVindo">
	        <h:panelGrid id="gridLoginSenha" columns="2">
	          <h:outputText id="loginLabel" value="Login:"/>
	          <h:inputText id="login" label="Login" value="#{loginBean.email}" required="true" requiredMessage="Login é Obrigatório"/>
	          <h:outputText id="senhaLabel" value="Senha:"/>
	          <h:inputSecret id="senha" label="Senha" value="#{loginBean.senha}" required="true" requiredMessage="Senha é Obrigatório"/>
	        </h:panelGrid>
	        <h:messages id="msgErro" style="color: red"/>
	        <h:commandButton id="botao" value="Entrar" actionListener="#{loginBean.login}"/>
       </p:panel>
      </h:form>
    </h:body>
</html>